package com.itc.resource;

import java.io.IOException;

import javax.microedition.lcdui.Image;

public class LoadResource {
	public static Image mImgLogo, mImgPlay, mImgHelp, mImgAbout, mImgExit,
			mImgFalse, mImgTrue, mImgCopyRight, mImgBackgroundScore, mImgMenu;
	public static Image mImgNumArr[];
	public static int GRB[];

	public LoadResource() {
		mImgNumArr = new Image[12];
		GRB = new int[4];
		GRB[0] = 51;
		GRB[1] = 102;
		GRB[2] = 153;
		GRB[3] = 204;
	}

	public static void LoadImage() {
		try {
			mImgLogo = Image.createImage("/logo_home.png");
			mImgPlay = Image.createImage("/ic_play.png");
			mImgHelp = Image.createImage("/ic_help.png");
			mImgAbout = Image.createImage("/ic_about.png");
			mImgExit = Image.createImage("/ic_exit.png");
			mImgFalse = Image.createImage("/ic_false.png");
			mImgTrue = Image.createImage("/ic_true.png");
			mImgCopyRight = Image.createImage("/ic_copyright.png");
			mImgBackgroundScore = Image.createImage("/game_over_bg.png");
			mImgMenu = Image.createImage("/ic_menu.png");

			mImgNumArr[0] = Image.createImage("/ic_zero.png");
			mImgNumArr[1] = Image.createImage("/ic_one.png");
			mImgNumArr[2] = Image.createImage("/ic_two.png");
			mImgNumArr[3] = Image.createImage("/ic_three.png");
			mImgNumArr[4] = Image.createImage("/ic_four.png");
			mImgNumArr[5] = Image.createImage("/ic_five.png");
			mImgNumArr[6] = Image.createImage("/ic_six.png");
			mImgNumArr[7] = Image.createImage("/ic_seven.png");
			mImgNumArr[8] = Image.createImage("/ic_eight.png");
			mImgNumArr[9] = Image.createImage("/ic_nine.png");
			mImgNumArr[10] = Image.createImage("/ic_add.png");
			mImgNumArr[11] = Image.createImage("/ic_result.png");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
